package me.mouse.gokistats.config;

import me.mouse.gokistats.GokiStats;

public class Config {
	private static boolean deathClearTalent;
	private static boolean keepMenu;
	private static int paymentID;
	private static String formula;
	private static GokiStats.PaymentType payment;

	public Config() {
		loadConfig();
	}

	public static void loadConfig() {
		deathClearTalent = GokiStats.config.getBoolean("main.deathClearTalent", false);
		keepMenu = GokiStats.config.getBoolean("main.keepMenu", false);

		paymentID = GokiStats.config.getInt("cost.defaultPayment", 0);
		formula = GokiStats.config.getString("cost.defaultFormula");

		if ((paymentID == 2) && (!GokiStats.loadEco)) {
			paymentID = 0;
		}

		payment = GokiStats.getPayment(paymentID);
	}

	public static GokiStats.PaymentType getPaymentType() {
		return payment;
	}

	public static String getFormula() {
		return formula;
	}

	public static boolean getDeathClearTalent() {
		return deathClearTalent;
	}

	public static boolean getKeepMenu() {
		return keepMenu;
	}
}
